define(['egis'], function (egis) {
    Window.deserializer = Window.deserializer || new egis.core.Deserializer();
    Window.container = Window.container || {};

    dsBridge.register('Layer_setZIndex', function (sourceId, zIndex) {
        var source = Window.container[sourceId];
        source.setZIndex(zIndex);
    })

    dsBridge.register('Layer_clear', function (sourceId, opt_fast) {
        var source = Window.container[sourceId];
        source.clear(opt_fast);
    })

    dsBridge.register('Layer_setVisible', function (sourceId, visible) {
        var source = Window.container[sourceId];
        source.setVisible(visible);
    })

    dsBridge.register('Layer_setOpacity', function (sourceId, opacity) {
        var source = Window.container[sourceId];
        source.setOpacity(opacity);
    })

    dsBridge.register('Layer_setMinZoom', function (sourceId, minZoom) {
        var source = Window.container[sourceId];
        source.setMinZoom(minZoom);
    })

    dsBridge.register('Layer_setMaxZoom', function (sourceId, maxZoom) {
        var source = Window.container[sourceId];
        source.setMaxZoom(maxZoom);
    })
})